package com.foreknow.demo5Exercise3;

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {

        Book b = new Book();
        b.menu();
        OrderItem oi = new OrderItem();
        Order o = new Order();

        int time =0;
        Scanner input = new Scanner(System.in);
        for (time = 1;time < 4;time++) {
            System.out.println("请输入图书的编号：");
            oi.setNo(input.nextInt());
            System.out.println("请输入购买数量：");
            oi.setHowmany(input.nextInt());
            o.add(oi);
            System.out.println("请继续购买图书");
        }



    }

}
